<!--
 * @FilePath     : /study_code/jquery/api-extend.html
 * @Description  : $.extend() jq 扩展静态方法
 * @Date         : 2025-04-17 11:34:14
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-17 11:34:25
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <!-- <link rel="stylesheet" href="" /> -->
  </head>
  <body>
    <script src="/jquery/dist/jquery.min.js"></script>
    <script>
      jQuery.extend({
        min: function (a, b) {
          return a < b ? a : b
        },
        max: function (a, b) {
          return a > b ? a : b
        },
      })

      console.log(1, jQuery.min(2, 3)) // 2
      console.log(2, $.min(2, 3)) // 2
      console.log(3, jQuery.max(4, 5)) // => 5
      console.log(4, $.max(4, 5)) // => 5
    </script>
  </body>
</html>
